|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.Agent
agents.BayesianAgent
public class BayesianAgent
Wrapper for opponentmodelspace, so that it is a neat utilityspace that we can give to the bidspace.
| Field Summary | |
|---|---|
protected OpponentModel |
fOpponentModel
|
| Fields inherited from class negotiator.Agent |
|---|
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace |
| Constructor Summary | |
|---|---|
BayesianAgent()
|
|
| Method Summary | |
|---|---|
Action |
chooseAction()
this function is called after ReceiveMessage, with an Offer-action. |
protected void |
dumpDistancesToLog(int pRound)
|
java.lang.String |
getName()
|
static java.lang.String |
getVersion()
|
void |
init()
This method is called by the protocol every time before starting a new session after the internalInit method is called. |
protected boolean |
isAcceptableAfter(double offeredutil,
Bid lnextBid)
Returns whether the offered utility is acceptable after computing a counter offer. |
protected boolean |
isAcceptableBefore(double offeredutil)
Returns whether the offered utility is acceptable before computing a counter offer. |
protected void |
prepareOpponentModel()
|
void |
ReceiveMessage(Action opponentAction)
informs you which action the opponent did |
| Methods inherited from class negotiator.Agent |
|---|
endSession, getAgentID, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected OpponentModel fOpponentModel
| Constructor Detail |
|---|
public BayesianAgent()
| Method Detail |
|---|
public static java.lang.String getVersion()
public java.lang.String getName()
getName in class Agentpublic void init()
Agent
init in class Agentprotected void prepareOpponentModel()
public void ReceiveMessage(Action opponentAction)
Agent
ReceiveMessage in class Agentpublic Action chooseAction()
Agent
chooseAction in class Agent
protected boolean isAcceptableAfter(double offeredutil,
Bid lnextBid)
throws java.lang.Exception
java.lang.Exception
protected boolean isAcceptableBefore(double offeredutil)
throws java.lang.Exception
java.lang.Exceptionprotected void dumpDistancesToLog(int pRound)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||